/* -------------------------------- 
Vertical Timeline - by CodyHouse.co
-------------------------------- */
@media only screen and (min-width: 1170px) {
  .is-hidden {
    visibility: hidden;
  }
}

.timeline {
  overflow: hidden;
  margin: 2em auto;
}

.timeline-container {
  position: relative;
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 2em 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    height: 100%;
    width: 2px;
    border: 2px solid rgba(148, 77, 255, 0.05);
    background: rgba(148, 77, 255, 0.05);
    border-radius: 3px;
}

@media only screen and (min-width: 1170px) {
  .timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  .timeline-container::before {
    left: 50%;
    margin-left: -2px;
  }
}

.timeline-block {
  position: relative;
  margin: 2em 0;
}

.timeline-block:after {
  content: "";
  display: table;
  clear: both;
}

.timeline-block:first-child {
  margin-top: 0;
}

.timeline-block:last-child {
  margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
  .timeline-block {
    margin: 4em 0;
  }
}

.timeline-img {
  position: absolute;
  top: 0;
  left: -2px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(244, 237, 255);
  border: none;
  color: #6e81dc;
}
.timeline-img i {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-size: 20px;
    padding: 12px;
}
.timeline-img.timeline-img-primary {
    background-color: rgba(244, 237, 255);
    border: none;
    color: #6e81dc;
}
.timeline-img.timeline-img-success {
    background-color: #a5ecc4;
    border: 2px solid #2bcd72;
}
.timeline-img.timeline-img-danger {
    background-color: #ffe4e6;
    border: 2px solid #ff4b5b;
}
.timeline-img.timeline-img-warning {
    background-color: #fef7e6;
    border: 2px solid #fac751;
}
.timeline-img.timeline-img-info {
    background-color: #c7ecee;
    border: 2px solid #52c4ca;
}
.timeline-img.timeline-img-secondary {
    background-color: #e9eaed;
    border: 2px solid #949CA9;
}
@media only screen and (min-width: 1170px) {
  .timeline-img {
    width: 45px;
    height: 45px;
    left: 50%;    
    margin-left: -22px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .timeline-img.timeline-img--bounce-in {
    visibility: visible;
    -webkit-animation: bounce-1 0.6s;
            animation: bounce-1 0.6s;
  }  
}

@-webkit-keyframes bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

.timeline-content {
  position: relative;
  margin-left: 60px;
  background: rgba(188, 196, 220, 0.1);
  border-radius: 3px;
  padding: 15px;
}

.timeline-content:after {
  content: "";
  display: table;
  clear: both;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 100%;
  height: 0;
  width: 0;
  border: 10px solid transparent;
  border-right: 10px solid #f8f9fb;
}

.timeline-content h4 {
  color: #282828;
  font-size: 18px;
  margin-bottom: 15px;
}

.timeline-content p {
  font-size: 16px;
  margin: 0;
  line-height: 20px;
}

.timeline-readmore,
.timeline-date {
  display: inline-block;
}

.timeline-readmore {
  float: right;
  padding: .8em 1em;
  background: #acb7c0;
  color: white;
  border-radius: 0.25em;
}

.timeline-date {
  float: left;
  padding: 6px 12px;
  font-size: 16px;
  background-color: #6e81dc;
  color: #fff;
  border-radius: 3px;
  text-align: center;
}
.timeline-date::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 100%;
    height: 0;
    width: 0;
    border: 10px solid transparent;
    border-right: 10px solid #6e81dc;
}
@media only screen and (min-width: 1170px) {
  .timeline-content {
    margin-left: 0;
    padding: 1.6em;
    width: 45%;
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
  .timeline-content::before {
    top: 10px;
    left: 100%;
    border-color: transparent;
    border-left-color: #f8f9fb;
  }
  .timeline-readmore {
    float: left;
  }
  .timeline-date {
    position: absolute;
    width: 30%;
    left: 122%;
    top: 0;
    font-size: 18px;
  }
  .timeline-block:nth-child(even) .timeline-content {
    float: right;
  }
  .timeline-block:nth-child(even) .timeline-content::before {
    top: 15px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #f8f9fb;
  }
  .timeline-block:nth-child(even) .timeline-readmore {
    float: right;
  }
  .timeline-block:nth-child(even) .timeline-date {
    left: auto;
    right: 122%;
    text-align: center;
  }
  .timeline-block:nth-child(even) .timeline-date::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 100%;
    height: 0;
    width: 0;
    border: 10px solid transparent;
    border-left: 10px solid #6e81dc;
  }
  .timeline-content.timeline-content--bounce-in {
    visibility: visible;
    -webkit-animation: bounce-2 0.6s;
            animation: bounce-2 0.6s;
  }
}

@media only screen and (min-width: 1170px) {
  .timeline-block:nth-child(even) .timeline-content.timeline-content--bounce-in {
    -webkit-animation: bounce-2-inverse 0.6s;
            animation: bounce-2-inverse 0.6s;
  }  
}
@media only screen and (max-width: 1170px) {
  .timeline-date {
    margin-top: 15px;
  }
  .timeline-date::before {
    border: none !important;
  } 
}


@-webkit-keyframes bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@-webkit-keyframes bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}
